<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
<head>
<base href="<%=basePath%>"></base>
<title>欢迎登录客户经理信息管理系统</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="js/jquery.js"></script>
<script src="js/cloud.js" type="text/javascript"></script>

<script language="javascript">
	$(function() {
		$('.loginbox').css({
			'position' : 'absolute',
			'left' : ($(window).width() - 692) / 2
		});
		$(window).resize(function() {
			$('.loginbox').css({
				'position' : 'absolute',
				'left' : ($(window).width() - 692) / 2
			});
		})
	});
	
	//登陆按钮
	function loginButton(){
		document.forms[0].action="login";
		document.forms[0].submit();
	}
</script>

</head>

<body
	style="background-color: #1c77ac; background-image: url(images/light.png); background-repeat: no-repeat; background-position: center top; overflow: hidden;">
	<form action="login" method="post">
	<div id="mainBody">
		<div id="cloud1" class="cloud"></div>
		<div id="cloud2" class="cloud"></div>
	</div>
	<div class="loginbody">
		<span></span>
		<div class="loginbox">
			<ul>
			    <!-- 实现登录错误信息 -->
			    <span><font color="red">${error}</font></span>
				<li><input name="cname" type="text" class="loginuser" 
					onclick="JavaScript:this.value=''" /></li>
				<li><input name="memPass" type="password" class="loginpwd"
					onclick="JavaScript:this.value=''" /></li>
				<li><input name="" type="button" class="loginbtn" value="登录"
					onclick="loginButton()" /><label><input name="" type="checkbox" value="" checked="checked" />记住密码</label></li>
			</ul>
		</div>
	</div>
	</form>
</body>
</html>